package com.noahplat.person.pojo;


import lombok.Data;
import org.hibernate.validator.constraints.Length;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 功能：一级科室分类实体类
 * name:宋彦磊
 * time:2021.02.28
 */

@Data
@Table(name = "enum_first_depart")
public class FirstDepart implements Serializable {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;   //主键ID

    @NotNull(message = "一层科室分类不能为空")
    @Length(max = 20)
    @Column(name = "first_depart")
    private String fdepart; //一层科室分类
}
